class Person(object):
    def __init__(self, age, name):
        self.name = name
        self.age = age

    def print(self):
        print(self.age, self.name)


class KingPerson(Person):
    def __init__(self, age, name, addr):
        super(KingPerson, self).__init__(age, name)
        self.addr = addr

    def add(self):
        print(self.addr, self.name, self.age)

    def print(self):
        super(KingPerson, self).print()
        print(self.age)


kp = KingPerson(18, "king", "beijing")
kp.print()
